.notification {
    position: fixed;
    padding: 12px 16px;
    border-radius: 4px;
    background: #333;
    color: white;
    z-index: 999;
    animation: notificationSlideIn 0.3s ease-in-out;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 位置样式 */
.notification-top-left {
    top: 20px;
    left: 20px;
    animation: notificationSlideInLeft 0.3s ease-in-out;
}

.notification-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: notificationSlideInTop 0.3s ease-in-out;
}

.notification-top-right {
    top: 20px;
    right: 20px;
    animation: notificationSlideInRight 0.3s ease-in-out;
}

.notification-bottom-left {
    bottom: 20px;
    left: 20px;
    animation: notificationSlideInLeft 0.3s ease-in-out;
}

.notification-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: notificationSlideInBottom 0.3s ease-in-out;
}

.notification-bottom-right {
    bottom: 20px;
    right: 20px;
    animation: notificationSlideInRight 0.3s ease-in-out;
}

/* 类型样式 */
.notification-info {
    background: #1890ff;
}

.notification-success {
    background: #52c41a;
}

.notification-error {
    background: #ff4d4f;
}

.notification-warning {
    background: #faad14;
    color: #333;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin-left: 8px;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 0.8;
}

/* 动画 */
@keyframes notificationSlideInLeft {
    from {
        transform: translateX(-400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notificationSlideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notificationSlideInTop {
    from {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes notificationSlideInBottom {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 600px) {
    .notification {
        max-width: calc(100% - 40px);
        left: 20px !important;
        right: 20px !important;
        transform: none !important;
    }
    
    .notification-top-left,
    .notification-top-right,
    .notification-top-center {
        top: 10px;
    }
    
    .notification-bottom-left,
    .notification-bottom-right,
    .notification-bottom-center {
        bottom: 10px;
    }
}
